package com.zking.service.dwm;

import com.zking.entity.Cart;
import com.zking.mapper.CartMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CartService_dwm {

    @Autowired
    private CartMapper cartMapper;

    public Cart selectCartid(String id){ return cartMapper.selectCartid(id);}

    public List<Cart> selectCartUserName(String name){
        return cartMapper.selectCartUserName(name);
    }


    public List<String> selectCartName(String name) {
        return cartMapper.selectCartName(name);
    }

    public void updateCartNumber(int number,String id) {
        cartMapper.updateCartNumber(number,id);
    }

    public void updateCartState(int state,String id){
        cartMapper.updateCartState(state,id);
    }
}
